Related Vulnerabilities: CVE-2021-4001  

When a map is read-only for the ebpf program and is frozen, the ebpf verifier will directly take the value from the map and directly use the value to participate in the verification of the ebpf verifier. After the ebpf program passes the verification of the verifier, and then uses the race condition bug to modify the frozen map content, all the assumptions of the ebpf verifier will be invalid, and it may also lead to the problem of local privilege escalation.

Severity Medium

Remote No

Type Privilege escalation

Description

When a map is read-only for the ebpf program and is frozen, the ebpf verifier will directly take the value from the map and directly use the value to participate in the verification of the ebpf verifier. After the ebpf program passes the verification of the verifier, and then uses the race condition bug to modify the frozen map content, all the assumptions of the ebpf verifier will be invalid, and it may also lead to the problem of local privilege escalation.

AVG-1881 linux-hardened 5.14.18.hardened1-1 Medium Vulnerable

AVG-1880 linux-zen 5.15.4.zen1-1 Medium Vulnerable

AVG-1879 linux 5.15.4.arch4-1 Medium Vulnerable

AVG-1741 linux-lts 5.10.81-1 Medium Vulnerable

https://bugzilla.redhat.com/show_bug.cgi?id=2025645
https://git.kernel.org/pub/scm/linux/kernel/git/bpf/bpf.git/commit/?id=353050be4c19e102178ccc05988101887c25ae53